<?php
// 本类由系统自动生成，仅供测试用途
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index()
    {

        $this->display();
    }
    public function eMail(){

        if(!empty($_POST['title']) && !empty($_POST['content'])){
            if( SendMail("350231746@qq.com",$_POST['tile'],$_POST['content']) )
                echo'发送成功！';
            else
                echo'发送失败';
        }
//        $this->assign('title','测试标题');
//        $this->display();

    }

}